Scaling properties of superoscillations and the extension to periodic signals