An electrostatic model for the determination of magnetic anisotropy in dysprosium complexes