Critical and multicritical behavior of the +-J Ising model in two and three dimensions