A theoretical analysis of Bose-Einstein condensate based beamsplitters, interferometers, and transistors