Hierarchical self-assembly of amelogenin and the regulation of biomineralization at the nanoscale