What is the underlying cause for dysmenorrhea? Why is ibuprofen the treatment of choice?