Gravity anomalies and flexure of the lithosphere at mountain ranges