Anisotropic thermal emission from magnetized neutron stars