Generalized quadrangles in projective spaces