Optimisation of supercapacitors using carbons with controlled nanotexture and nitrogen content