Nearly Optimal Parameter selection for the Elastic Net