Exact Foldy-Wouthuysen transformation for real spin-0 particle in curved space