Synthesis and electrochemical study of phosphorus-doped porous carbon for supercapacitor applications