Energy distributions of pulsed-laser field-desorbed gaseous ions and field-evaporated metal ions: A direct time-of-flight measurement