Phenomenological and analytical solution of the Bohr model for even–even and odd–even nuclei with Mie potential