PV mounting system for flat roofs