Full potential x-ray absorption calculations using the time dependent density functional theory