Doppler factors, Lorentz factors and viewing angles for quasars, BL Lacertae objects and radio galaxies