All-optical transistor based on a cavity optomechanical system with a Bose-Einstein condensate