Reduced basis approximation and error estimation of parametrized partial differential equations