A Unified Framework for Defining and Identifying Causal Effects