Stability of top- and bottom-gate amorphous polymer field-effect transistors