Quantitative Languages Defined by Functional Automata (Logical Methods in Computer Science, 2015)