Deciding definability in FO2( (Logical Methods in Computer Science, 2015)