San Diego investor buys Apple Valley retail building