Powder for thermal spraying, thermal spraying method, and thermally sprayed coating