Protein evolution as a complex system