Feedback-Directed Cross-Layer Optimization of Cloud-Based Functional Actor Applications