its departmental capital is the city of masaya