A generic energy systems model for efficient ship design and operation. (May 2017)