Profilometer of secondary beams based on a multiwire proportional chamber