Degrees of freedom of elastic net, adaptive lasso and