A Spectroscopic Method of Determining the Absolute Magnitudes of A-Type Stars and the Parallaxes of 544 Stars