Effective point-charge analysis of crystal fields: Application to rare-earth pyrochlores and tripod kagome magnets R3Mg2Sb3O14