Landmark estimation of survival and treatment effects in observational studies