Axion emission from SN1987A. Nuclear physics constraints