Evolutionary stability of jointly evolving traits in subdivided populations