How can the atomic mass of an element be calculated?