MobileAIBench: Benchmarking LLMs and LMMs for On-Device Use Cases