Germany has been rattled by attacks on electricity substations across the country.