Grading switching for modular non-associative algebras