Evaluation of the AMOEBA force field for simulating metal halide perovskites in the solid state and in solution.