Anomaly mediation in supergravity theories