Magnetization of densely packed interacting magnetic nanoparticles with cubic and uniaxial anisotropies: A Monte Carlo study