A new photo-electric method of classification of luminosity and spectral type for O-and B-type stars