Neutron stars as laboratories for the nuclear matter equation of state and indirect detection of axions