Hypergeometric equations and weighted projective spaces