Equation of state ofN2and Ne near their critical points. Scaling, corrections to scaling, and amplitude ratios