X-ray photoabsorption in metallic aluminium, polycristalline and amorphous Al2O3