Japan considering accepting Gazans for medical aid: Prime minister