Dolphins hiring 49ers offensive coordinator Mike McDaniel as head coach