Electrical bistability in amorphous semiconductors: a basic analysical theory