Non-LTE model calculations for SN 1987A and the extragalactic distance scale