Template Matching Methods For Causal Inference In Complex Observational Studies