Negative magnetoresistance in asymmetric p+–i–n+ structures