Pressure-induced isostructural phase transition and charge transfer in superconducting FeSe