Stability of mixed Ekman-Hartmann boundary layers