On the dirichlet problem for degenerate Monge-Ampère equations