Nike tops revenue expectations but markdowns and costs hit profits