Chemical diagnostics of magnetized boundary layers