Controlling charge injection by self-assembled monolayers in bottom-gate and top-gate organic field-effect transistors