BRST-BFV analysis of anomalies in bosonic string theory interacting with background gravitational field