A statistical empirical energy function for proteins