Gravar-mail: Self-consistently optimized energy functions for protein structure prediction by molecular dynamics