Maps of protein structure space reveal a fundamental relationship between protein structure and function