Bayern, Monchengladbach into German Cup quarters