A photonic transistor device based on photons and phonons in a cavity electromechanical system