Characteristic Boundary Layers for Mixed Hyperbolic-Parabolic Systems in One Space Dimension and Applications to the Navier-Stokes and MHD Equations