Carbon and nitrogen cycling in snow-covered environments