A unified coarse-grained model of biological macromolecules based on mean-field multipole–multipole interactions