Bundesliga champions Bayern Munich beat Darmstadt to relegate the league's bottom side into the second tier.