Heat transfer and film cooling of blade tips and endwalls