From ancient Egyptian pottery to distinctive blue bottles, cobalt oxide has been providing ‘chemically and artistically perfect’ pigments for centuries