Real Madrid on brink of Spanish title