People seek out art and music that combine sadness and beauty. Scientists and artists say there's good reason why we're drawn to it.