UBV photometry and MK spectral classification of northern early-type stars at intermediate galactic latitudes