Suppression of secondary emission in a magnetic field using triangular and rectangular surfaces