Magnetized neutron matter and deformed neutron stars