The $C^*$-algebras of quantum lens and weighted projective spaces