Schwarzschild black holes in various dimensions from matrix theory