Current switches based on asymmetric ferromagnet-superconductor nanostructures with allowance for a triplet channel in an external magnetic field