Optimal Robot Formations: Balancing Range-Based Observability and User-Defined Configurations