Substitute Leroy Fer headed the winner as Holland Under-21s prevailed after a fightback by Germany U21s to win 3-2.