High-precision particle mass measurements using the KEDR detector at the VEPP-4M collider