Volumes of moduli spaces of flat surfaces