Volume phase transition of N-alkylacrylamide gels