Energy-density functional approach for non-spherical nuclei