Sweden handed Germany their biggest-ever defeat at a women’s European Championship, with a 4-1 win to secure top spot in Group C.