A k-nearest neighbor space-time simulator with applications to large-scale wind and solar power modeling