Parametric Lyapunov Equation Approach for Robust H2 Analysis and Structured H2 Control Problems