On the size of unary probabilistic and nondeterministic automata