A weighted composite likelihood approach for space-time data