Statistical analysis of modulated codes for robot positioning: application to BeAMS