A unified approach to power and sample size determination for log-rank tests under proportional and nonproportional hazards. (May 2021)