Calculation of electron momentum distributions using density functional theory