Enhancement of the optomechanical coupling and Kerr nonlinearity using the Josephson capacitance of a Cooper-pair box