Spectral classification and estimation of distances to the Be/X-ray binaries 1H1936+541 and 1H2202+501