Wannier excitons in low-dimensional microstructures: Shape dependence of the quantum size effect.