Lifetimes of excited states of 39Ca and 39K