how are solar panels connected to the mains