The nonlinearity and Hamming weights of rotation symmetric Boolean functions of small degree