Quantifying baryon effects on the matter power spectrum and the weak lensing shear correlation