Patrik Schick scored his eighth goal of the season as Carles MartÃnez's side edged neighbours Cologne in a gripping Rhine derby.