An atlas of X- and gamma-ray pulse profiles of the Crab pulsar (PSR 0531+21): an analysis of energy and time variations