Elastic and anelastic anomalies due to spin-state transitions in orthorhombic perovskite from isoelectronic behavior of Co3+ and Fe2+