Gravar-mail: A New Positioning Algorithm for Position-Sensitive Avalanche Photodiodes