Model atmospheres for SN 1987A and the distance to the Large Magellanic Cloud