An effective all-atom potential for proteins