40-foot endangered sperm whale washes ashore in Oregon