Bimetric variational principle for general relativity