Napoli have signed Spanish free agent Toni Doblas on a contract running until the end of the season amid a growing goalkeeping crisis.