Implementation of arbitrary periodic dynamic behaviors in networked systems