Sharp quantitative integral inequalities for harmonic extensions