From crystal chemistry to optical functionality in rare-earth orthochromites: a unified physical framework