Gonzalo Castro, Shinji Kagawa and Pierre Emerick-Aubameyang secured a 3-0 victory for Borussia Dortmund over Bundesliga strugglers Hamburg.