Network Function Virtualization in Elastic Optical Networks