Two railway stations in North Yorkshire have become finalists in an annual competition to name the country's favourite.