Text this: Design and implementation of a pem fuel cell emulator for static and dynamic behavior