Autonomous bioisosteric replacement for multi-property optimization in drug design